#include "ssadestructor.h"

#include <iostream>
#include <ostream>

void SSADestructor::Destruct(IRFunction* func) {
    std::cout << func->name << std::endl;
    //
    func->Validate();
}

void* SSADestructor::Run(void* input) {
    auto module = (IRModule*)input;
    for (auto func : module->globalFuncs) {
        Destruct(func);
    }
    return module;
}
